import { prop } from '@typegoose/typegoose';
import {ApiProperty} from '@nestjs/swagger';

export class Student {

  @ApiProperty({description:'学号',example:"18060514"})
  @prop()
  stuId: string;

  @ApiProperty({description:'姓名',example:"邓伟巍"})
  @prop()
  name: string;

  @ApiProperty({description:'性别',example:"男"})
  @prop()
  sex: string;

  @ApiProperty({description:'班级',example:"计算机科学与技术1805"})
  @prop()
  stuClass: string;

  @ApiProperty({description:'系部',example:"信息工程学院"})
  @prop()
  category: string;
}
